package com.techsoul.module.basic.pojo.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.techsoul.common.core.util.lang.StringUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

import java.util.Date;

/**
 * 业务汇总日历 Vo
 * 
 * @author liuen
 * @date 2023-08-12
 */
@Data
@Accessors(chain = true)
public class MyCalendarVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("")
    private Long seq;

    @ApiModelProperty("")
    private String mon;

    @ApiModelProperty("")
    private String tue;

    @ApiModelProperty("")
    private String wed;

    @ApiModelProperty("")
    private String thu;

    @ApiModelProperty("")
    private String fri;

    @ApiModelProperty("")
    private String sat;

    @ApiModelProperty("")
    private String sun;

    @ApiModelProperty("")
    private String nian;

    @ApiModelProperty("")
    private String zhou;

    @ApiModelProperty("")
    private String yue;

    @ApiModelProperty("")
    private String firstdayat;

    @ApiModelProperty("")
    private String sundaydate;

    @ApiModelProperty("")
    private Long version;

    @ApiModelProperty("")
    private String shipperCode;

    @ApiModelProperty("")
    private String monP;

    @ApiModelProperty("")
    private String tueP;

    @ApiModelProperty("")
    private String wedP;

    @ApiModelProperty("")
    private String thuP;

    @ApiModelProperty("")
    private String friP;

    @ApiModelProperty("")
    private String satP;

    @ApiModelProperty("")
    private String sunP;

    @ApiModelProperty("")
    private String monCt;

    @ApiModelProperty("")
    private String tueCt;

    @ApiModelProperty("")
    private String wedCt;

    @ApiModelProperty("")
    private String thuCt;

    @ApiModelProperty("")
    private String thuCo;

    @ApiModelProperty("")
    private String wedCo;

    @ApiModelProperty("")
    private String tueCo;

    @ApiModelProperty("")
    private String monCo;

    @ApiModelProperty("")
    private String friCo;

    @ApiModelProperty("")
    private String friCt;

    @ApiModelProperty("")
    private String satCt;

    @ApiModelProperty("")
    private String satCo;

    @ApiModelProperty("")
    private String sunCt;

    @ApiModelProperty("")
    private String sunCo;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    private Date createDate;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("更新时间")
    private Date updateDate;

    @ApiModelProperty("")
    private String id;

    @ApiModelProperty("创建人名称")
    private String createByName;
    @ApiModelProperty("获取星期一日期")
    public String getMondate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "2";

            }else{
                return "1";
            }

        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+1);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    public String getTuedate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&
                    Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "2";
            }else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+2);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    public String getWeddate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2&&Long.valueOf(this.firstdayat).longValue()!=3)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+3);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    public String getThudate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2
                    &&Long.valueOf(this.firstdayat).longValue()!=3
                    &&Long.valueOf(this.firstdayat).longValue()!=4)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "5";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==3){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+4);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    private long getLastMonthDay()
    {
        if(this.getYue().equals("1")||
                this.getYue().equals("3")||
                this.getYue().equals("5")||
                this.getYue().equals("7")||
                this.getYue().equals("8")||
                this.getYue().equals("10")||
                this.getYue().equals("12"))
        {
            return 31;
        }else if(this.getYue().equals("2")){
            return 28;
        }else
            return 30;

    }
    public String getFridate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0
                    &&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2
                    &&Long.valueOf(this.firstdayat).longValue()!=3
                    &&Long.valueOf(this.firstdayat).longValue()!=4
                    &&Long.valueOf(this.firstdayat).longValue()!=5)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "6";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "5";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==3){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==4){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+5);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    public String getSundate() {
        if (!StringUtils.isNull(this.firstdayat)) {
            if (Long.valueOf(this.firstdayat).longValue() != 0) {
                return "";

            } else {
                return "1";
            }

        } else {
            String todaydate =this.getSundaydate();
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    public String getSatdate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2
                    &&Long.valueOf(this.firstdayat).longValue()!=3
                    &&Long.valueOf(this.firstdayat).longValue()!=4
                    &&Long.valueOf(this.firstdayat).longValue()!=5
                    &&Long.valueOf(this.firstdayat).longValue()!=6)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "7";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "6";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "5";
            }else if(Long.valueOf(this.firstdayat).longValue()==3){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==4){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==5){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+6);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }

        }

    }


    public String getSaturdayLink() {
        if (StringUtils.isNull(this.getSatdate()))
            return " ";
        else {
            String datarange = "";
            if (Long.valueOf(this.getSatdate()).longValue() < 10) {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getSatdate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getSatdate());

                }
            } else {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getSatdate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getSatdate());

                }
            }

            return datarange;
        }
    }
        public String getMondayLink(){
            if(StringUtils.isNull(this.getMondate()))
                return " ";
            else
            {
                String datarange = "";
                if (Long.valueOf(this.getMondate()).longValue() < 10) {
                    if (Long.valueOf(this.getYue()) < 10) {
                        datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getMondate());

                    } else {
                        datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getMondate());

                    }
                } else {
                    if (Long.valueOf(this.getYue()) < 10) {
                        datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getMondate());

                    } else {
                        datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getMondate());

                    }
                }
                return datarange;
            }

        }
        public String getTuesdayLink() {
            if(StringUtils.isNull(this.getTuedate()))
                return " ";
            else
            {
                String datarange = "";
                if (Long.valueOf(this.getTuedate()).longValue() < 10) {
                    if (Long.valueOf(this.getYue()) < 10) {
                        datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getTuedate());

                    } else {
                        datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getTuedate());

                    }
                } else {
                    if (Long.valueOf(this.getYue()) < 10) {
                        datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getTuedate());

                    } else {
                        datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getTuedate());

                    }
                }
                return datarange;
            }

        }
    public String getWedsdayLink() {
        if(StringUtils.isNull(this.getWeddate()))
            return " ";
        else
        {
            String datarange = "";
            if (Long.valueOf(this.getWeddate()).longValue() < 10) {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getWeddate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getWeddate());

                }
            } else {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getWeddate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getWeddate());

                }
            }


            return datarange;
        }

    }
    public String getThursdayLink() {
        if(StringUtils.isNull(this.getThudate()))
            return " ";
        else
        {
            String datarange = "";
            if (Long.valueOf(this.getThudate()).longValue() < 10) {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getThudate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getThudate());

                }
            } else {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getThudate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getThudate());

                }
            }


            return datarange;
        }

    }


    public String getFridayLink() {
        if(StringUtils.isNull(this.getFridate()))
            return " ";
        else
        {
            String datarange = "";
            if (Long.valueOf(this.getFridate()).longValue() < 10) {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getFridate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getFridate());

                }
            } else {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getFridate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getFridate());

                }
            }



            return datarange;
        }

    }

    public String getSundayLink() {
        if(StringUtils.isNull(this.getSundate()))
            return " ";
        else
        {
            String datarange = "";
            if (Long.valueOf(this.getSundate()).longValue() < 10) {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-0").concat(this.getSundate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-0").concat(this.getSundate());

                }
            } else {
                if (Long.valueOf(this.getYue()) < 10) {
                    datarange = this.getNian().concat("-0").concat(this.getYue()).concat("-").concat(this.getSundate());

                } else {
                    datarange = this.getNian().concat("-").concat(this.getYue()).concat("-").concat(this.getSundate());

                }
            }




            return datarange;
        }

    }


  /*
    @ApiModelProperty("更新人名称")
    private String updateByName;





    private String sunctLink;
    public String getSunctLink() {
        if(StringUtils.isNull(this.getSundate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getSundate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getSundate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getSundate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getSundate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getSundate());

                }
            }
            String sunctlink ="contractCalendarViewList.do?daterange=" + datarange ;
            return sunctlink;
        }

    }




    public String getWedcLink() {
        if(StringUtils.isNull(this.getWeddate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getWeddate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getWeddate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getWeddate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getWeddate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getWeddate());

                }
            }
            String link ="contractPingshenCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getThucLink() {
        if(StringUtils.isNull(this.getThudate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getThudate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getThudate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getThudate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getThudate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getThudate());

                }
            }
            String link ="customerOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getFricLink() {
        if(StringUtils.isNull(this.getFridate()))
            return " ";
        else
        {
            String datarange = "";

            if(Long.valueOf(this.getFridate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getFridate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getFridate());

                }
            }else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getFridate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getFridate());
                }
            }
            String link ="customerOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getSatcLink() {
        if(StringUtils.isNull(this.getSatdate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getSatdate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getSatdate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getSatdate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getSatdate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getSatdate());

                }
            }
            String link ="customerOrderCalendarViewList.do?daterange=" + datarange ;

            return link;
        }

    }
    public String getTuepLink() {
        if(StringUtils.isNull(this.getTuedate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getTuedate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getTuedate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getTuedate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getTuedate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getTuedate());

                }
            }
            String link ="purchaseOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getWedpLink() {
        if(StringUtils.isNull(this.getWeddate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getWeddate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getWeddate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getWeddate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getWeddate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getWeddate());

                }
            }
            String link ="purchaseOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getThupLink() {
        if(StringUtils.isNull(this.getThudate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getThudate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getThudate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getThudate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getThudate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getThudate());

                }
            }
            String link ="purchaseOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getFripLink() {
        if(StringUtils.isNull(this.getFridate()))
            return " ";
        else
        {
            String datarange = "";

            if(Long.valueOf(this.getFridate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getFridate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getFridate());

                }
            }else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getFridate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getFridate());
                }
            }
            String link ="purchaseOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getSatpLink() {
        if(StringUtils.isNull(this.getSatdate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getSatdate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getSatdate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getSatdate());

                }
            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getSatdate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getSatdate());

                }
            }
            String link ="purchaseOrderCalendarViewList.do?daterange=" + datarange ;

            return link;
        }

    }
    public String getSunLink() {
        if(StringUtils.isNull(this.getSundate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getSundate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getSundate());
                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getSundate());
                }

            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getSundate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getSundate());
                }
            }
            String link ="contractPingshenCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getSuncLink() {
        if(StringUtils.isNull(this.getSundate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getSundate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getSundate());
                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getSundate());
                }

            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getSundate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getSundate());
                }
            }
            String link ="customerOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }
    public String getSunpLink() {
        if(StringUtils.isNull(this.getSundate()))
            return " ";
        else
        {
            String datarange = "";
            if(Long.valueOf(this.getSundate()).longValue()<10){
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat("0").concat(this.getSundate());
                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat("0").concat(this.getSundate());
                }

            }
            else{
                if(Long.valueOf(this.getMonth())<10){
                    datarange = this.getNian().concat("0").concat(this.getMonth()).concat(this.getSundate());

                }else{
                    datarange = this.getNian().concat(this.getMonth()).concat(this.getSundate());
                }
            }
            String link ="purchaseOrderCalendarViewList.do?daterange=" + datarange ;
            return link;
        }

    }



    public String getSundsp() {
        return this.getSundate().concat("\r\n").concat(this.getSunLink());

    }
    public String getSunpdsp() {
        return this.getSundate().concat("\r\n").concat(this.getSunpLink());

    }
    public String getMondsp() {

        return this.getMondate().concat("\r\n").concat(this.getMonLink());

    }
    public String getMonpdsp() {

        return this.getMondate().concat("\r\n").concat(this.getMonpLink());

    }
    public String getTuedate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&
                    Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "2";
            }else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+2);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }
    public String getTuedsp() {
        return this.getTuedate().concat("\r\n").concat(this.getTueLink());

    }
    public String getTuepdsp() {
        return this.getTuedate().concat("\r\n").concat(this.getTuepLink());

    }
    public String getWeddate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2&&Long.valueOf(this.firstdayat).longValue()!=3)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+3);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }


    public String getWeddsp() {
        return this.getWeddate().concat("\r\n").concat(this.getWedLink());
    }
    public String getWedpdsp() {
        return this.getWeddate().concat("\r\n").concat(this.getWedpLink());
    }

    public String getThudsp() {
        return this.getThudate().concat("\r\n").concat(this.getThuLink());
    }
    public String getThupdsp() {
        return this.getThudate().concat("\r\n").concat(this.getThupLink());
    }
    public String getThudate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2
                    &&Long.valueOf(this.firstdayat).longValue()!=3
                    &&Long.valueOf(this.firstdayat).longValue()!=4)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "5";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==3){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+4);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }

    public String getFridsp() {
        return this.getFridate().concat("\r\n").concat(this.getFriLink());

    }
    public String getFripdsp() {
        return this.getFridate().concat("\r\n").concat(this.getFripLink());

    }
    public String getFridate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0
                    &&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2
                    &&Long.valueOf(this.firstdayat).longValue()!=3
                    &&Long.valueOf(this.firstdayat).longValue()!=4
                    &&Long.valueOf(this.firstdayat).longValue()!=5)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "6";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "5";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==3){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==4){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+5);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }
        }

    }

    public String getSatdsp() {
        return this.getSatdate().concat("\r\n").concat(this.getSatLink());
    }
    public String getSatpdsp() {
        return this.getSatdate().concat("\r\n").concat(this.getSatpLink());
    }
    public String getSatdate() {
        if (!StringUtils.isNull(this.firstdayat))
        {
            if(Long.valueOf(this.firstdayat).longValue()!=0&&Long.valueOf(this.firstdayat).longValue()!=1&&
                    Long.valueOf(this.firstdayat).longValue()!=2
                    &&Long.valueOf(this.firstdayat).longValue()!=3
                    &&Long.valueOf(this.firstdayat).longValue()!=4
                    &&Long.valueOf(this.firstdayat).longValue()!=5
                    &&Long.valueOf(this.firstdayat).longValue()!=6)
            {
                return "";

            }else if(Long.valueOf(this.firstdayat).longValue()==0){
                return "7";
            }else if(Long.valueOf(this.firstdayat).longValue()==1){
                return "6";
            }else if(Long.valueOf(this.firstdayat).longValue()==2){
                return "5";
            }else if(Long.valueOf(this.firstdayat).longValue()==3){
                return "4";
            }else if(Long.valueOf(this.firstdayat).longValue()==4){
                return "3";
            }else if(Long.valueOf(this.firstdayat).longValue()==5){
                return "2";
            }
            else{
                return "1";
            }


        }else
        {
            String todaydate = String.valueOf(Long.valueOf(this.getSundaydate()).longValue()+6);
            if(Long.valueOf(todaydate).longValue()>this.getLastMonthDay()){
                return "";
            }else{
                return todaydate;
            }

        }

    }*/


}
